﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Microsoft.Practices.Unity;
using System.Web;

namespace Isha.Web.Mvc
{
    public class IshaResponseContext
    {
        HttpContext _httpContext = null;

        public IshaResponseContext(HttpContext httpContext)
        {
            _httpContext = httpContext;
        }

        public HttpResponse HttpResponse
        {
            get
            {
                return _httpContext.Response;
            }
        }

        public string Action
        {
            get
            {
                return Container.Resolve<string>("IshaAction");
            }
        }

        private IUnityContainer Container
        {
            get
            {
                return DependencyResolver.Current.GetService<IUnityContainer>();
            }
        }
    }
}
